#!/bin/bash

python build-test-shitouren.py

ps aux | grep test.pyc | grep -v grep | awk '{print $2}' | xargs kill -9
#ps aux | grep socket_server.pyc | grep "port=${websocket_port}" | awk '{print $2}' | xargs kill -9

PYTHONPATH=./test/shitouren/ nohup python ./test/shitouren/test.pyc port=8000 >> /web/logs/test.log 2>&1 &
#nohup python ./test/shitouren/socket_server.pyc port=${websocket_port} &

tail -f /web/logs/test.log

